import json
from exercise.case.path import BASE_DIR


def test_read_data():
    with open(BASE_DIR + '/data/login.json', encoding='utf-8') as f:
        data_list = json.load(f)
        new_list = []
        for data in data_list:
            username = data.get('username')
            password = data.get('password')
            expect = data.get('expect')
            new_list.append((username, password, expect))
        return new_list

if __name__ == '__main__':
    print(test_read_data())